package com.ruoyi.iot.mapper;

import com.ruoyi.iot.domain.IotRule;

import java.util.List;

/**
 * 联动规则Mapper接口iot
 *
 * @author ruoyi
 * @date 2025-03-28
 */
public interface IotRuleMapper {
    /**
     * 查询联动规则
     *
     * @param ruleId 联动规则主键
     * @return 联动规则
     */
    public IotRule selectIotRuleByRuleId(Long ruleId);

    /**
     * 查询联动规则列表
     *
     * @param iotRule 联动规则
     * @return 联动规则集合
     */
    public List<IotRule> selectIotRuleList(IotRule iotRule);

    /**
     * 新增联动规则
     *
     * @param iotRule 联动规则
     * @return 结果
     */
    public int insertIotRule(IotRule iotRule);

    /**
     * 修改联动规则
     *
     * @param iotRule 联动规则
     * @return 结果
     */
    public int updateIotRule(IotRule iotRule);

    /**
     * 删除联动规则
     *
     * @param ruleId 联动规则主键
     * @return 结果
     */
    public int deleteIotRuleByRuleId(Long ruleId);

    /**
     * 批量删除联动规则
     *
     * @param ruleIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteIotRuleByRuleIds(Long[] ruleIds);
}
